﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LogicUniversityBiz;

namespace LogicUniversity.clerks
{
    public partial class OrderDetails : System.Web.UI.Page
    {
        protected void Page_PreInit(Object sender, EventArgs e)
        {
            //(Session["Role"]
            if (Session["Role"] as string != "Clerk")
            {
                Response.Redirect("~/Login.aspx");
            }

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            supplier.Text = Request.QueryString["supname"] as string;
            deliever.Text = Request.QueryString["deliver"] as string;
            date.Text = Request.QueryString["expectedDate"] as string;
            string[] clerks = (Request.QueryString["orderby"].ToString()).Split('_');

            Purchse_Order po = (Purchse_Order)Session["purchase"];

            OrderDetailsView.DataSource = po.Purchase_Order_Detail;
            OrderDetailsView.DataBind();

            
        }
    }
}